package com.atguigu.yygh.cmn;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

//创建实体类和Excel表格做映射
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Student {
    @ExcelProperty(index = 0,value = "学生编号")
    private Integer id;
    @ExcelProperty(index = 1,value = "学生姓名")
    private String name;
    @ExcelProperty(index = 2,value = "学生年龄")
    private Integer age;
}
